package com.hdoit.apollo.logical.stock.model;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hdoit.apollo.logical.purchase.model.Purchase;
import com.tennetcn.data.message.ModelBase;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月02日 11:53:44
 * @comment
 */
@Entity
@Table(name="stock_out_stock")
public class OutStock extends ModelBase{
    //Id
    @Id
    @Column(name="outStockId")
    private String outStockId;

    //出库数
    @Column(name="outStockNum")
    private Double outStockNum;
    
    
    //出库种类数
    @Column(name="outStockTypeNum")
    private Integer outStockTypeNum;

    //尚欠数
    @Column(name="outStockDebt")
    private Double outStockDebt;
    
    //退欠货数
    @Column(name="returnCargoNum")
    private Double returnCargoNum;

    //出货类型（出库发货）
    @Column(name="type")
    private String type;

    //出库状态
    @Column(name="outStockState")
    private String outStockState;

    //订单Id
    @Column(name="billingId")
    private String billingId;

    //变动操作记录
    @Column(name="changeCode")
    private String changeCode;
    
    //订单类型
    @Column(name="billingType")
    private String billingType;
    
    //原单
    @Column(name="outStockIdYuan")
    private String outStockIdYuan;
    
    //修改标记
    @Column(name="modifyMark")
    private String  modifyMark;
    
    //提交时间
    @Column(name="submitDate")
    private Date submitDate;
    
    //提交人
    @Column(name="submitUserId")
    private String submitUserId;

    //提交人名称
    @Column(name="submitUserName")
    private String submitUserName;
    
    //门店id
    @Column(name="shopId")
    private String shopId;

    //创建时间
    @Column(name="createDate")
    private Date createDate;

    //创建人id
    @Column(name="createUserId")
    private String createUserId;

    //创建人名称
    @Column(name="createUserName")
    private String createUserName;

    //修改时间
    @Column(name="modifyDate")
    private Date modifyDate;

    //修改人id
    @Column(name="modifyUserId")
    private String modifyUserId;

    //修改人名称
    @Column(name="modifyUserName")
    private String modifyUserName;

    //删除标记
    @Column(name="deleteMark")
    private Integer deleteMark;
    
    //备注
    @Column(name="comment")
    private String comment;
    
	@Transient
    private List<OutStockShow> outStockShows;
	

	//关联采购订单
	@Column(name="purchaseId")
	private String purchaseId;
	
	//仓库
	@Column(name="warehouse")
	private String warehouse;
	
	@Column(name="outStockNo")
	private String outStockNo;
	
	//采购退货金额
	@Column(name="returnMoney")
	private Double returnMoney;
	
	@Transient
	private String collocationIds;
	
	@Transient
	private String outStockPrices;
	
	@Transient
	private String outStockNums;
	
	@Transient
	private Purchase purchase;
	
    public String getOutStockIdYuan() {
		return outStockIdYuan;
	}
	public void setOutStockIdYuan(String outStockIdYuan) {
		this.outStockIdYuan = outStockIdYuan;
	}
	public String getModifyMark() {
		return modifyMark;
	}
	public void setModifyMark(String modifyMark) {
		this.modifyMark = modifyMark;
	}
	public Date getSubmitDate() {
		return submitDate;
	}
	public void setSubmitDate(Date submitDate) {
		this.submitDate = submitDate;
	}
	public String getSubmitUserId() {
		return submitUserId;
	}
	public void setSubmitUserId(String submitUserId) {
		this.submitUserId = submitUserId;
	}
	public String getSubmitUserName() {
		return submitUserName;
	}
	public void setSubmitUserName(String submitUserName) {
		this.submitUserName = submitUserName;
	}
	public String getBillingType() {
		return billingType;
	}
	public void setBillingType(String billingType) {
		this.billingType = billingType;
	}
	public String getCollocationIds() {
		return collocationIds;
	}
	public void setCollocationIds(String collocationIds) {
		this.collocationIds = collocationIds;
	}
	public String getOutStockPrices() {
		return outStockPrices;
	}
	public void setOutStockPrices(String outStockPrices) {
		this.outStockPrices = outStockPrices;
	}
	public String getOutStockNums() {
		return outStockNums;
	}
	public void setOutStockNums(String outStockNums) {
		this.outStockNums = outStockNums;
	}
	public Double getReturnMoney() {
		return returnMoney;
	}
	public void setReturnMoney(Double returnMoney) {
		this.returnMoney = returnMoney;
	}
	public String getWarehouse() {
		return warehouse;
	}
	public void setWarehouse(String warehouse) {
		this.warehouse = warehouse;
	}
	public String getOutStockNo() {
		return outStockNo;
	}
	public void setOutStockNo(String outStockNo) {
		this.outStockNo = outStockNo;}

	@Transient
    private String billingNo;
	
	@Transient
    private String customerName;
	
	public String getBillingNo() {
		return billingNo;
	}
	public void setBillingNo(String billingNo) {
		this.billingNo = billingNo;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public Double getReturnCargoNum() {
		return returnCargoNum;
	}
	public void setReturnCargoNum(Double returnCargoNum) {
		this.returnCargoNum = returnCargoNum;
	}
	public String getChangeCode() {
		return changeCode;
	}
	public void setChangeCode(String changeCode) {
		this.changeCode = changeCode;
	}
	public List<OutStockShow> getOutStockShows() {
		return outStockShows;
	}
	public void setOutStockShows(List<OutStockShow> outStockShows) {
		this.outStockShows = outStockShows;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}

    public String getOutStockId(){
        return this.outStockId;
    }
    public void setOutStockId(String outStockId){
         this.outStockId=outStockId;
    }

    public Double getOutStockNum(){
        return this.outStockNum;
    }
    public void setOutStockNum(Double outStockNum){
         this.outStockNum=outStockNum;
    }

    public Double getOutStockDebt(){
        return this.outStockDebt;
    }
    public void setOutStockDebt(Double outStockDebt){
         this.outStockDebt=outStockDebt;
    }

    
    public Integer getOutStockTypeNum() {
		return outStockTypeNum;
	}
	public void setOutStockTypeNum(Integer outStockTypeNum) {
		this.outStockTypeNum = outStockTypeNum;
	}
	public String getType(){
        return this.type;
    }
    public void setType(String type){
         this.type=type;
    }

    public String getOutStockState(){
        return this.outStockState;
    }
    public void setOutStockState(String outStockState){
         this.outStockState=outStockState;
    }

    public String getBillingId(){
        return this.billingId;
    }
    public void setBillingId(String billingId){
         this.billingId=billingId;
    }

    public String getShopId(){
        return this.shopId;
    }
    public void setShopId(String shopId){
         this.shopId=shopId;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public Date getModifyDate(){
        return this.modifyDate;
    }
    public void setModifyDate(Date modifyDate){
         this.modifyDate=modifyDate;
    }

    public String getModifyUserId(){
        return this.modifyUserId;
    }
    public void setModifyUserId(String modifyUserId){
         this.modifyUserId=modifyUserId;
    }

    public String getModifyUserName(){
        return this.modifyUserName;
    }
    public void setModifyUserName(String modifyUserName){
         this.modifyUserName=modifyUserName;
    }

    public Integer getDeleteMark(){
        return this.deleteMark;
    }
    public void setDeleteMark(Integer deleteMark){
         this.deleteMark=deleteMark;
    }
	public String getPurchaseId() {
		return purchaseId;
	}
	public void setPurchaseId(String purchaseId) {
		this.purchaseId = purchaseId;
	}
	public Purchase getPurchase() {
		return purchase;
	}
	public void setPurchase(Purchase purchase) {
		this.purchase = purchase;
	}

}
